package com.ruoyi.analysis.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.analysis.mapper.ProductAnalysisWelderMapper;
import com.ruoyi.analysis.domain.ProductAnalysisWelder;
import com.ruoyi.analysis.service.IProductAnalysisWelderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 人员生产数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-04
 */
@Service
public class ProductAnalysisWelderServiceImpl implements IProductAnalysisWelderService 
{
    @Autowired
    private ProductAnalysisWelderMapper productAnalysisWelderMapper;

    /**
     * 查询人员生产数据
     * 
     * @param id 人员生产数据主键
     * @return 人员生产数据
     */
    @Override
    public ProductAnalysisWelder selectProductAnalysisWelderById(Long id)
    {
        return productAnalysisWelderMapper.selectProductAnalysisWelderById(id);
    }

    /**
     * 查询人员生产数据列表
     * 
     * @param productAnalysisWelder 人员生产数据
     * @return 人员生产数据
     */
    @Override
    public List<ProductAnalysisWelder> selectProductAnalysisWelderList(ProductAnalysisWelder productAnalysisWelder)
    {
        return productAnalysisWelderMapper.selectProductAnalysisWelderList(productAnalysisWelder);
    }

    /**
     * 新增人员生产数据
     * 
     * @param productAnalysisWelder 人员生产数据
     * @return 结果
     */
    @Override
    public int insertProductAnalysisWelder(ProductAnalysisWelder productAnalysisWelder)
    {
        return productAnalysisWelderMapper.insertProductAnalysisWelder(productAnalysisWelder);
    }

    /**
     * 修改人员生产数据
     * 
     * @param productAnalysisWelder 人员生产数据
     * @return 结果
     */
    @Override
    public int updateProductAnalysisWelder(ProductAnalysisWelder productAnalysisWelder)
    {
        return productAnalysisWelderMapper.updateProductAnalysisWelder(productAnalysisWelder);
    }

    /**
     * 批量删除人员生产数据
     * 
     * @param ids 需要删除的人员生产数据主键
     * @return 结果
     */
    @Override
    public int deleteProductAnalysisWelderByIds(String ids)
    {
        return productAnalysisWelderMapper.deleteProductAnalysisWelderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除人员生产数据信息
     * 
     * @param id 人员生产数据主键
     * @return 结果
     */
    @Override
    public int deleteProductAnalysisWelderById(Long id)
    {
        return productAnalysisWelderMapper.deleteProductAnalysisWelderById(id);
    }
}
